package fem2.gui.actions;

import inf.vtk.pm.PipelineCollection;

import java.awt.event.ActionEvent;

public class ShowConvergenceDialogAction extends ActionBaseModel {

	private static final long serialVersionUID = 1L;

	public ShowConvergenceDialogAction(PipelineCollection pc) {
		super("Study Convergence...", pc);
	}

	public void actionPerformed(ActionEvent e) {
//		if (!ConvergenceDialog.isDialogShowing()) {
//			Model m = getCastedModel();
//			Viewer2 v = (Viewer2) Frame.getFrames()[0];
//			VTKCanvas c = v.getCanvas();
//			ConvergenceDialog cd = new ConvergenceDialog(v, m, c);
//			Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
//			Dimension md = cd.getSize();
//
//			cd.setLocation(d.width - md.width, 0);
//			cd.setVisible(true);
//		}
	}
}
